<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link href="<%=request.getContextPath()%>/themes/css/ui.common.css" rel="stylesheet"
			type="text/css" />
		<link href="<%=request.getContextPath()%>/themes/css/ui.child.css" rel="stylesheet"
			type="text/css" />
		<link href="<%=request.getContextPath()%>/themes/css/ui.tips.css" rel="stylesheet"
			type="text/css" />
		<link href="<%=request.getContextPath()%>/style/jquery_ui/jquery-ui-1.8.custom.css"
			rel="stylesheet" type="text/css" />
		<script src="<%=request.getContextPath()%>/Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
		<script src="<%=request.getContextPath()%>/Scripts/jquery-ui-1.8.custom.min.js"
			type="text/javascript"></script>
		<script src="<%=request.getContextPath()%>/Scripts/ui.admincp.js" type="text/javascript"
			charset="UTF-8"></script>
		<script src="<%=request.getContextPath()%>/Scripts/ui.tips.js" type="text/javascript"></script>
		<script src="<%=request.getContextPath()%>/Scripts/ui.default.js " type="text/javascript"
			charset="UTF-8"></script>
		<link id="skin_css" rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/themes/css/ui.c.blue.css"></link>
		<STYLE type="text/css">
.editorArea {
	display: none;
}
</STYLE>
<script type="text/javascript">
				$(function(){
				
			$("#dialog").dialog("destroy"); 
			$("#dialog-form").dialog({
			autoOpen: false,
			height: 300,
			width: 350,
			modal: true,
			buttons: {
				Cancel: function() {
					$(this).dialog('close');
				}
			},
			close: function() {
				//allFields.val('').removeClass('ui-state-error');
			}
			});
			
			$('.editButton')
			.click(function() { 
			    var id = $(this).attr("entityId");
			    alert(id);
			
			    	$(".validateTips").html("<div>新闻"+id+"正在加载...</div>");
			    //ajax..
			    $.post("noticelist!queryDetail.action",{"query_id":id},function(data){
			    	
			    	$(".validateTips").html("");
			    	alert(data);
			    	var objectFromServer = $.toJSON(data);
			    	
			    	alert("d:"+objectFromServer.noticeInfo.content);
			    },"json");
			    
			    //success:function(data){
			     $('#dialog-form').dialog('open');
			    //});
			
				
			});
				});
				
			</script>

	</head>

	<body>
		<div class="PageChild_Where">
			<table style="height: 60px;" border="0" cellpadding="0"
				cellspacing="0">

				<tr>
					<td class="mtd" valign="top"> 
						类型名称: 
					</td>
					<td>
						<input name="txt_Tile" type="text" maxlength="100" id="add"
							style="width: 200px;" />

						<div class="Tips3">
							按物资类型名称过滤,多个关键字用分号相隔..
						</div>
					</td>
				</tr>

				<tr>
					<td>
						&lsquo;&rsquo;
					</td>
					<td>		<button type="button" id="create-user" value="Create new user">Create new user</button>
						<input type="submit" name="btn_Serach" value="搜索" id="btn_Serach" />
						&nbsp;&nbsp;
						<span id="lbl_list_count">共搜索到 <b>9</b> 条符合条件的记录。</span>
					</td>
				</tr>
			</table>
		</div>
		<div class="PageChild_List">
			<table width="100%" border="0" cellspacing="0"
				style="text-align: left">
				<tbody class="PageChild_List_head">
					<tr>
						<td width="16">
							<img src="../themes/images/default/icons/pcde_314.png" width="16"
								height="16" />
						</td>
						<td>
							会议名称
						</td>
						<td>
							会议地点
						</td>
						<td>
							会议起始时间
						</td>
						<td>
							会议终止时间
						</td>
						<td>
							发布时间
						</td>
						<td class="td_width45">
							详细信息
						</td>
					</tr>
				</tbody>
				<tbody class="PageChild_List_main" style="text-align: left">

					<s:iterator value="list" var="item">
						<!-- 会议通知列表开始 -->
						<tr class='td_no_bord'>
							<td class="td_width25">on
							</td>
							<td>
								<span>${item.title}</span>
							</td>
							<td>
								<span> ${item.place} </span>
							</td>
							<td>
								<span> ${item.startTime} </span>
							</td>
							<td>
								<span> ${item.endTime} </span>
							</td>
							<td>
								<span> ${item.publishTime} </span>
							</td>
							<td>
								<a class="editButton" id="sender_${item.noticeId}"
									href="javascript:void(0);" state="0" entityId="${item.noticeId}"
									onclick="return false;"> <img
										src="<%=request.getContextPath()%>/themes/icons/info.png" title="单击查看详细会议信息" /> </a> &nbsp;

							</td>
						</tr>
					</s:iterator>
					<!-- 会议通知列表结束 -->
				</tbody>
			</table>

		</div>
		<div id="Anp_Page" class="left_txt"
			style="color: #80FFFF; border-style: None;">
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td class="left_txt" valign="bottom" nowrap="true"
						style="width: 40%;">
						第1页，共16页，每页10条
					</td>
					<td class="left_txt" valign="bottom" nowrap="true"
						style="width: 60%;">
						<a disabled="disabled" style="margin-right: 5px;">首页</a><a
							disabled="disabled" style="margin-right: 5px;">上一页</a><span
							style="margin-right: 5px; font-weight: Bold; color: red;">1</span><a
							href="javascript:__doPostBack(&#39;Anp_Page&#39;,&#39;2&#39;)"
							style="margin-right: 5px;">2</a><a
							href="javascript:__doPostBack(&#39;Anp_Page&#39;,&#39;3&#39;)"
							style="margin-right: 5px;">3</a><a
							href="javascript:__doPostBack(&#39;Anp_Page&#39;,&#39;4&#39;)"
							style="margin-right: 5px;">4</a><a
							href="javascript:__doPostBack(&#39;Anp_Page&#39;,&#39;5&#39;)"
							style="margin-right: 5px;">5</a><a
							href="javascript:__doPostBack(&#39;Anp_Page&#39;,&#39;6&#39;)"
							style="margin-right: 5px;">6</a><a
							href="javascript:__doPostBack(&#39;Anp_Page&#39;,&#39;7&#39;)"
							style="margin-right: 5px;">7</a><a
							href="javascript:__doPostBack(&#39;Anp_Page&#39;,&#39;8&#39;)"
							style="margin-right: 5px;">8</a><a
							href="javascript:__doPostBack(&#39;Anp_Page&#39;,&#39;9&#39;)"
							style="margin-right: 5px;">9</a><a
							href="javascript:__doPostBack(&#39;Anp_Page&#39;,&#39;10&#39;)"
							style="margin-right: 5px;">10</a><a
							href="javascript:__doPostBack(&#39;Anp_Page&#39;,&#39;11&#39;)"
							style="margin-right: 5px;">...</a><a
							href="javascript:__doPostBack(&#39;Anp_Page&#39;,&#39;2&#39;)"
							style="margin-right: 5px;">下一页</a><a
							href="javascript:__doPostBack(&#39;Anp_Page&#39;,&#39;16&#39;)"
							style="margin-right: 5px;">尾页</a>&nbsp;&nbsp;转到
						<select name="Anp_Page_input" id="Anp_Page_input"
							onchange="__doPostBack(&#39;Anp_Page&#39;,&#39;&#39;)">
							<option value="1" selected="true">
								1
							</option>
							<option value="2">
								2
							</option>
							<option value="3">
								3
							</option>
							<option value="4">
								4
							</option>
							<option value="5">
								5
							</option>
							<option value="6">
								6
							</option>
							<option value="7">
								7
							</option>
							<option value="8">
								8
							</option>
							<option value="9">
								9
							</option>
							<option value="10">
								10
							</option>
							<option value="11">
								11
							</option>
							<option value="12">
								12
							</option>
							<option value="13">
								13
							</option>
							<option value="14">
								14
							</option>
							<option value="15">
								15
							</option>
							<option value="16">
								16
							</option>
						</select>
						页
					</td>
				</tr>
			</table>
		</div>
	<div id="dialog-form" title="Create new user">
			<p class="validateTips">
				
			</p>
 
				<fieldset id="panel">
					<div>
						<label for="name">
							Name
						</label>
						<input type="text" name="name" id="name"
							class="text ui-widget-content ui-corner-all" />
					</div>
					<div>
						<label for="email">
							Email
						</label>
						<input type="text" name="email" id="email" value=""
							class="text ui-widget-content ui-corner-all" />
					</div>
					<div>
						<label for="password">
							详细信息
						</label>
						 <div id="div_content">
						 	 
						 </div>
					</div>
				</fieldset> 
		</div>
	</body>
</html>
